//
//  NetworkManager.h
//  MooreDoll
//
//  Created by Joe on 2014/12/19.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AppDelegate.h"
#import "ChatMessage.h"
#import "ChatRoom.h"
#import "Roster.h"




@interface NetworkManager : NSObject


@property(nonatomic,strong)NSManagedObjectContext *managerObjectContext;


@property (strong,nonatomic)NSMutableArray *vcardResultArray;
@property (strong,nonatomic)NSMutableArray *syncRosterArray;
@property (strong,nonatomic)NSMutableArray *syncResultArray;

@property (strong,nonatomic)NSMutableArray *sendArray;

@property (strong,nonatomic)NSMutableArray *senderJIDArray;
@property (strong,nonatomic)NSMutableArray *senderVcardArray;
@property (strong,nonatomic)NSMutableArray *senderMsgArray;


+(NetworkManager *)sharedInstance;
-(void)syncRosterWithStatusArray:(NSArray *)friends;
-(void)syncRosterExcuse:(NSDictionary *)dic_Vcard;
-(void)reciveDataFromFtpWithDictionary:(NSDictionary *)dictionary;
-(void)reciveMessageFromServerWithDictionary:(NSDictionary *)dictionary;
-(void)sendDataSuccessWithDictionary:(NSDictionary *)dictionary;

-(void)sendFileProgressWithDictionary:(NSDictionary *)dictionary;
-(void)receiveFileProgressWithDictionary:(NSDictionary *)dictionary;


-(NSArray *)coreDataSearchWithEntityName:(NSString *)entityName Predicate:(NSString *)predicateString SortBy:(NSString *)sortString;
@end
